package com.tul.vapp.servicecenter.bean;

/**
 * 前端通用返回bean
 *
 * @author ldzhu
 */
public class ResponseBean {
    /**
     * 是否成功
     */
    private boolean success = true;
    /**
     * 是否强制修改密码
     */
    private boolean changePwd = false;
	/**
	 * 错误信息
	 */
	private String errorMsg = "";
	/**
	 * 错误代码
	 */
	private String errorCode = "";
	/**
	 * 错误级别
	 */
	private String errorLevel = "";
	/**
	 * 数据
	 */
	private Object data;

	/**
	 * 构造器
	 */
	public ResponseBean() {
		super();
	}

	/**
	 * 带参数的构造器
	 *
	 * @param success success
	 */
	public ResponseBean(boolean success) {
		super();
		this.success = success;
	}

    public boolean isChangePwd() {
        return changePwd;
    }

    public void setChangePwd(boolean changePwd) {
        this.changePwd = changePwd;
    }

    /**
     * 重写toString
     *
     * @return string
     */
    @Override
    public String toString() {
        return "ResponseBean{"
                + "success=" + success
                + ", errorMsg='" + errorMsg + '\''
                + ", errorCode='" + errorCode + '\''
                + ", data=" + data
                + '}';
    }

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
	}

	public String getErrorLevel() {
		return errorLevel;
	}

	public void setErrorLevel(String errorLevel) {
		this.errorLevel = errorLevel;
    }

}
